package com.sumainfor.pc.market.service.gmio;

import com.sumainfor.pc.market.dao.OwnerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/3/31 16:20
 * @Description:
 */
@Service
public class OwnerBillService {

    @Autowired
    OwnerMapper OwnerMapper;

    /**
     * 功能描述: 
     * 根据业主手机号获取业主所有账单总数
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/3/31 16:22
     */
    public Map<String,Object> getOwnerBillList(Map<String,Object>params){
        Map<String,Object>result=new HashMap<String,Object>();
        List<Map<String,Object>> getOwnerBillList=OwnerMapper.getOwnerBillList(params);
        List<String>owdealList=new ArrayList<String>();
        if(getOwnerBillList.size()>0){
            for (Map<String,Object> map:getOwnerBillList){
                owdealList.add(map.get("OwDeId").toString());
            }
        }
        result.put("owdealList",owdealList);
        return result;
    }

}
